﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Configurations
{
    public interface IXmlCommand
    {
        /// <summary>
        /// 修改设置查询地址
        /// </summary>
        string Filepath { get;set;}

        /// <summary>
        /// 要查询的element 不区分大小写
        /// </summary>
        string Element { get;set;}

        /// <summary>
        /// 查询的约束条件
        /// </summary>
        IXmlConstraintCollection Constraints { get;}

        /// <summary>
        /// 执行查询结果 如果xml格式错误 则抛异常
        /// </summary>
        /// <returns></returns>
        IXmlTree ExecuteReader();

        /// <summary>
        /// 对象序列化
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        List<T> SerializeReader<T>();
    }
}
